package com.shangjinrong.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shangjinrong.domain.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shangjinrong.domain.dto.UserInfoQuery;
import com.shangjinrong.domain.dto.LoginDto;
import com.shangjinrong.domain.vo.UserIndexVO;
import com.shangjinrong.domain.vo.UserInfoVO;

public interface UserInfoService extends IService<UserInfo>{


    /**
     * 根据手机号查询用户
     *
     * @param mobile 手机号
     * @return  用户信息
     */
    public  UserInfo selectByMobile(String mobile);


    IPage<UserInfo> listPage(Page<UserInfo> pageParam, UserInfoQuery userInfoQuery);

    void lock(Long id, Integer status);

    public UserInfoVO login(LoginDto loginDto);

    void paging(Page page,UserInfoQuery query);

    UserIndexVO getIndexUserInfo(long userId);
}
